@import '../../styles//vars.scss';

.x-md {
  width: 100%;
  padding: 1rem;

  * {
    margin: 0.8rem 0;
    line-height: 2;
  }

  p {
    text-indent: 2rem;
  }

  pre {
    background-color: #f1e4fc;
    border: 1px solid $color-bili;
    padding: 1rem;
    border-radius: 0.25rem;
  }

  ul,ol {
    li {
      margin: 0;
    }
    ul {
      margin: 0 1rem;
    }
    ol {
      margin: 0 2rem;
    }
  }

  ul {
    margin-left: 3rem;
  }

  ol {
    margin-left: 4rem;
  }

  table {
    border-spacing: 0;
    thead {
      tr {
        th {
          border: 1px solid gainsboro;
          border-left: 0;
          background-color: aliceblue;
          padding: 0.25rem 1rem;
          &:first-child {
            border-left: 1px solid gainsboro;
          }
        }
      }
    }
    tbody {
      tr {
        td {
          border: 1px solid gainsboro;
          border-left: 0;
          border-top: 0;
          padding: 0.25rem 1rem;
          &:first-child {
            border-left: 1px solid gainsboro;
          }
        }
      }
    }
  }
}
